package com.jiuzhe.commercial.ui.my;

import android.content.Intent;

import com.jiuzhe.commercial.R;
import com.jiuzhe.commercial.base.BaseActivity;
import com.jungly.gridpasswordview.GridPasswordView;

import butterknife.BindView;

/**
 * Created by huanghao on 2018/5/31.
 */

public class ResetPayPassWorodActivity extends BaseActivity {
    @BindView(R.id.pswView)
    GridPasswordView pswView;

    @Override
    protected void loadViewLayout() {
        setContentView(R.layout.activity_reset_psw);
        setTitle("设置提现密码");
    }

    @Override
    protected void loadData() {
        pswView.setOnPasswordChangedListener(new GridPasswordView.OnPasswordChangedListener() {
            @Override
            public void onTextChanged(String psw) {

            }

            @Override
            public void onInputFinish(String psw) {
                Intent intent = new Intent(ResetPayPassWorodActivity.this,ResetTwoPayPassWorodActivity.class);
                intent.putExtra("newPwd",psw);
                startActivity(intent);
            }
        });
    }
}
